Skip to content

Preserve vehicle component visibility #4287

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 11, 2025

Conversation

ColombuxMaximus
Copy link
Contributor

Cached m_bVisible flags before m_ComponentData resets and restored them post-recreation to ensure setVehicleComponentVisible persists through model/variant changes.

Fixes #3888

Before you go ahead and create a pull request, please make sure:

If your work is incomplete, do not prefix your pull request with "WIP", instead
create a draft pull request: https://github.blog/2019-02-14-introducing-draft-pull-requests/

Thank you!

@Dutchman101 Dutchman101 merged commit 1d81347 into multitheftauto:master Jul 11, 2025
6 checks passed
MTABot pushed a commit that referenced this pull request Jul 11, 2025
1d81347 Preserve vehicle component visibility (#4287)
@Dutchman101 Dutchman101 added this to the 1.6.1 milestone Jul 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hidden default vehicle components are being redisplayed when changing handling/variant/parts states(fix)
2 participants